package com.fenghuajueli.libbasecoreui.utils;

import android.content.Context;

import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.DividerItemDecoration;

public class DividerItemUtils {

    public static DividerItemDecoration getLineDivider(Context context, int resoureId, int orientation) {
        DividerItemDecoration divider = new DividerItemDecoration(context, orientation);
        divider.setDrawable(ContextCompat.getDrawable(context, resoureId));
        return divider;
    }

}
